<?php

namespace app\silk_eshop\controller;

/**
 * ArticleController 类
 *
 * @since VER:1.0; DATE:2016-8-31; AUTHOR:SoChishun; EMAIL:14507247@qq.com; DESC:Added.
 */
class ArticleController extends AppbaseController {

    function article($tag = '') {
        if (!$tag) {
            $this->error('参数无效!');
        }
        $m_content = new \XWAM\Model\DocumentCategoryContentModel();
        $data = $m_content->get_item_by_code($tag);
        unset($m_content);
        $this->assign('data', $data);
        $this->display();
    }

}
